import request from '@/utils/request'

// 查询乘客钱包列表
export function listWallets(query) {
  return request({
    url: '/passengers/wallets/list',
    method: 'get',
    params: query
  })
}

// 查询乘客钱包详细
export function getWallets(id) {
  return request({
    url: '/passengers/wallets/' + id,
    method: 'get'
  })
}

// 新增乘客钱包
export function addWallets(data) {
  return request({
    url: '/passengers/wallets',
    method: 'post',
    data: data
  })
}

// 修改乘客钱包
export function updateWallets(data) {
  return request({
    url: '/passengers/wallets',
    method: 'put',
    data: data
  })
}

// 删除乘客钱包
export function delWallets(id) {
  return request({
    url: '/passengers/wallets/' + id,
    method: 'delete'
  })
}
